package com.vclee.fast.integration.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vclee.fast.integration.power.model.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
    int deleteByUserId(Integer userId);

    List<SysUserRole> selectMixList(@Param("userId") Integer userId, @Param("orgId") Integer orgId);

    void batchInsert(@Param("userId") Long userId, @Param("orgId") Integer orgId, @Param("ids") List<Integer> ids);

    List<SysUserRole> selectListByUserId(@Param("userId") Integer userId);
}